﻿using System;
using System.CodeDom.Compiler;
using System.Reflection;
using System.Runtime.CompilerServices;
using AutoR.Controls;
using AutoR.Models;
using AutoR.ViewModels.Setting;
using Plugin.Iconize;
using Prism.Mvvm;
using Xamarin.Forms;
using Xamarin.Forms.Internals;
using Xamarin.Forms.Xaml;
using Xamarin.Forms.Xaml.Internals;

namespace AutoR.Views.Setting
{
	// Token: 0x02000020 RID: 32
	[XamlFilePath("Views\\Setting\\AddShip.xaml")]
	public class AddShip : ContentPage
	{
		// Token: 0x0600008A RID: 138 RVA: 0x000128BB File Offset: 0x00010ABB
		public AddShip()
		{
			this.InitializeComponent();
		}

		// Token: 0x0600008B RID: 139 RVA: 0x000128C9 File Offset: 0x00010AC9
		private void ListView_OnItemTapped(object sender, ItemTappedEventArgs e)
		{
			((AddShipViewModel)base.BindingContext).SelectShip = (e.Item as UserShip);
		}

		// Token: 0x0600008C RID: 140 RVA: 0x000128E6 File Offset: 0x00010AE6
		private void Picker_OnSelectedIndexChanged(object sender, EventArgs e)
		{
			AddShipViewModel addShipViewModel = (AddShipViewModel)base.BindingContext;
			if (addShipViewModel == null)
			{
				return;
			}
			addShipViewModel.GenList();
		}

		// Token: 0x0600008D RID: 141 RVA: 0x00012900 File Offset: 0x00010B00
		[GeneratedCode("Xamarin.Forms.Build.Tasks.XamlG", "0.0.0.0")]
		private void InitializeComponent()
		{
			if (ResourceLoader.ResourceProvider != null && ResourceLoader.ResourceProvider(typeof(AddShip).GetTypeInfo().Assembly.GetName(), "Views/Setting/AddShip.xaml") != null)
			{
				this.__InitComponentRuntime();
				return;
			}
			if (XamlLoader.XamlFileProvider != null && XamlLoader.XamlFileProvider(base.GetType()) != null)
			{
				this.__InitComponentRuntime();
				return;
			}
			Label label = new Label();
			BindingExtension bindingExtension = new BindingExtension();
			string item = "全部";
			string item2 = "航母";
			string item3 = "轻母";
			string item4 = "装母";
			string item5 = "战列";
			string item6 = "航战";
			string item7 = "战巡";
			string item8 = "重巡";
			string item9 = "航巡";
			string item10 = "雷巡";
			string item11 = "轻巡";
			string item12 = "重炮";
			string item13 = "驱逐";
			string item14 = "潜母";
			string item15 = "潜艇";
			string item16 = "炮潜";
			string item17 = "补给";
			string item18 = "导驱";
			string item19 = "防驱";
			Picker picker = new Picker();
			BindingExtension bindingExtension2 = new BindingExtension();
			Button button = new Button();
			StackLayout stackLayout = new StackLayout();
			BindingExtension bindingExtension3 = new BindingExtension();
			DataTemplate dataTemplate = new DataTemplate();
			ListView listView = new ListView();
			StackLayout stackLayout2 = new StackLayout();
			NameScope value = new NameScope();
			NameScope.SetNameScope(this, value);
			this.SetValue(ViewModelLocator.AutowireViewModelProperty, new bool?(true));
			this.SetValue(Page.TitleProperty, "添加舰船");
			stackLayout.SetValue(StackLayout.OrientationProperty, StackOrientation.Horizontal);
			label.SetValue(Label.TextProperty, "筛选： ");
			label.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			stackLayout.Children.Add(label);
			bindingExtension.Path = "ShipType";
			BindingBase binding = ((IMarkupExtension<BindingBase>)bindingExtension).ProvideValue(null);
			picker.SetBinding(Picker.SelectedIndexProperty, binding);
			picker.SetValue(VisualElement.WidthRequestProperty, 60.0);
			picker.SelectedIndexChanged += this.Picker_OnSelectedIndexChanged;
			picker.Items.Add(item);
			picker.Items.Add(item2);
			picker.Items.Add(item3);
			picker.Items.Add(item4);
			picker.Items.Add(item5);
			picker.Items.Add(item6);
			picker.Items.Add(item7);
			picker.Items.Add(item8);
			picker.Items.Add(item9);
			picker.Items.Add(item10);
			picker.Items.Add(item11);
			picker.Items.Add(item12);
			picker.Items.Add(item13);
			picker.Items.Add(item14);
			picker.Items.Add(item15);
			picker.Items.Add(item16);
			picker.Items.Add(item17);
			picker.Items.Add(item18);
			picker.Items.Add(item19);
			stackLayout.Children.Add(picker);
			button.SetValue(Button.TextProperty, "确定");
			bindingExtension2.Path = "OKCommand";
			BindingBase binding2 = ((IMarkupExtension<BindingBase>)bindingExtension2).ProvideValue(null);
			button.SetBinding(Button.CommandProperty, binding2);
			button.SetValue(View.HorizontalOptionsProperty, LayoutOptions.EndAndExpand);
			button.SetValue(View.MarginProperty, new Thickness(5.0, 0.0, 0.0, 0.0));
			stackLayout.Children.Add(button);
			stackLayout2.Children.Add(stackLayout);
			bindingExtension3.Path = "List";
			BindingBase binding3 = ((IMarkupExtension<BindingBase>)bindingExtension3).ProvideValue(null);
			listView.SetBinding(ItemsView<Cell>.ItemsSourceProperty, binding3);
			listView.SetValue(ListView.HasUnevenRowsProperty, true);
			listView.ItemTapped += this.ListView_OnItemTapped;
			IDataTemplate dataTemplate2 = dataTemplate;
			AddShip.<InitializeComponent>_anonXamlCDataTemplate_23 <InitializeComponent>_anonXamlCDataTemplate_ = new AddShip.<InitializeComponent>_anonXamlCDataTemplate_23();
			object[] array = new object[0 + 4];
			array[0] = dataTemplate;
			array[1] = listView;
			array[2] = stackLayout2;
			array[3] = this;
			<InitializeComponent>_anonXamlCDataTemplate_.parentValues = array;
			<InitializeComponent>_anonXamlCDataTemplate_.root = this;
			dataTemplate2.LoadTemplate = new Func<object>(<InitializeComponent>_anonXamlCDataTemplate_.LoadDataTemplate);
			listView.SetValue(ItemsView<Cell>.ItemTemplateProperty, dataTemplate);
			stackLayout2.Children.Add(listView);
			this.SetValue(ContentPage.ContentProperty, stackLayout2);
		}

		// Token: 0x0600008E RID: 142 RVA: 0x00012D6A File Offset: 0x00010F6A
		private void __InitComponentRuntime()
		{
			this.LoadFromXaml(typeof(AddShip));
		}

		// Token: 0x02000021 RID: 33
		[CompilerGenerated]
		private sealed class <InitializeComponent>_anonXamlCDataTemplate_23
		{
			// Token: 0x06000090 RID: 144 RVA: 0x00012D94 File Offset: 0x00010F94
			internal object LoadDataTemplate()
			{
				BindingExtension bindingExtension = new BindingExtension();
				Image image = new Image();
				BindingExtension bindingExtension2 = new BindingExtension();
				Label label = new Label();
				BindingExtension bindingExtension3 = new BindingExtension();
				Image image2 = new Image();
				BindingExtension bindingExtension4 = new BindingExtension();
				Image image3 = new Image();
				BindingExtension bindingExtension5 = new BindingExtension();
				Image image4 = new Image();
				BindingExtension bindingExtension6 = new BindingExtension();
				Image image5 = new Image();
				BindingExtension bindingExtension7 = new BindingExtension();
				Label label2 = new Label();
				BindingExtension bindingExtension8 = new BindingExtension();
				IconImage iconImage = new IconImage();
				StackLayout stackLayout = new StackLayout();
				BindingExtension bindingExtension9 = new BindingExtension();
				Label label3 = new Label();
				BindingExtension bindingExtension10 = new BindingExtension();
				Bloodbar bloodbar = new Bloodbar();
				BindingExtension bindingExtension11 = new BindingExtension();
				Label label4 = new Label();
				BindingExtension bindingExtension12 = new BindingExtension();
				Label label5 = new Label();
				BindingExtension bindingExtension13 = new BindingExtension();
				Label label6 = new Label();
				BindingExtension bindingExtension14 = new BindingExtension();
				Image image6 = new Image();
				BindingExtension bindingExtension15 = new BindingExtension();
				Image image7 = new Image();
				StackLayout stackLayout2 = new StackLayout();
				StackLayout stackLayout3 = new StackLayout();
				Frame frame = new Frame();
				ViewCell viewCell = new ViewCell();
				NameScope nameScope = new NameScope();
				NameScope.SetNameScope(viewCell, nameScope);
				frame.SetValue(Frame.OutlineColorProperty, Color.MediumBlue);
				frame.SetValue(Xamarin.Forms.Layout.PaddingProperty, new Thickness(4.0));
				frame.SetValue(View.MarginProperty, new Thickness(2.0));
				stackLayout.SetValue(StackLayout.OrientationProperty, StackOrientation.Horizontal);
				stackLayout.SetValue(StackLayout.SpacingProperty, 2.0);
				bindingExtension.Path = "SmallImage";
				BindingBase binding = ((IMarkupExtension<BindingBase>)bindingExtension).ProvideValue(null);
				image.SetBinding(Image.SourceProperty, binding);
				image.SetValue(VisualElement.WidthRequestProperty, 80.0);
				image.SetValue(VisualElement.HeightRequestProperty, 21.0);
				stackLayout.Children.Add(image);
				bindingExtension2.Path = "level";
				bindingExtension2.StringFormat = "Lv{0}";
				BindingBase binding2 = ((IMarkupExtension<BindingBase>)bindingExtension2).ProvideValue(null);
				label.SetBinding(Label.TextProperty, binding2);
				label.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
				BindableObject bindableObject = label;
				BindableProperty fontSizeProperty = Label.FontSizeProperty;
				IExtendedTypeConverter extendedTypeConverter = new FontSizeConverter();
				string value = "12";
				XamlServiceProvider xamlServiceProvider = new XamlServiceProvider();
				Type typeFromHandle = typeof(IProvideValueTarget);
				int length;
				object[] array = new object[(length = this.parentValues.Length) + 5];
				Array.Copy(this.parentValues, 0, array, 5, length);
				object[] array2 = array;
				array2[0] = label;
				array2[1] = stackLayout;
				array2[2] = stackLayout3;
				array2[3] = frame;
				array2[4] = viewCell;
				object service;
				xamlServiceProvider.Add(typeFromHandle, service = new SimpleValueTargetProvider(array2, Label.FontSizeProperty, nameScope));
				xamlServiceProvider.Add(typeof(IReferenceProvider), service);
				Type typeFromHandle2 = typeof(IXamlTypeResolver);
				XmlNamespaceResolver xmlNamespaceResolver = new XmlNamespaceResolver();
				xmlNamespaceResolver.Add("", "http://xamarin.com/schemas/2014/forms");
				xmlNamespaceResolver.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
				xmlNamespaceResolver.Add("prism", "clr-namespace:Prism.Mvvm;assembly=Prism.Forms");
				xmlNamespaceResolver.Add("controls", "clr-namespace:AutoR.Controls;assembly=AutoR");
				xmlNamespaceResolver.Add("iconize", "clr-namespace:Plugin.Iconize;assembly=Plugin.Iconize");
				xamlServiceProvider.Add(typeFromHandle2, new XamlTypeResolver(xmlNamespaceResolver, typeof(AddShip.<InitializeComponent>_anonXamlCDataTemplate_23).GetTypeInfo().Assembly));
				xamlServiceProvider.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(45, 119)));
				bindableObject.SetValue(fontSizeProperty, extendedTypeConverter.ConvertFromInvariantString(value, xamlServiceProvider));
				label.SetValue(VisualElement.WidthRequestProperty, 40.0);
				stackLayout.Children.Add(label);
				bindingExtension3.Path = "Equipment1.Image";
				BindingBase binding3 = ((IMarkupExtension<BindingBase>)bindingExtension3).ProvideValue(null);
				image2.SetBinding(Image.SourceProperty, binding3);
				image2.SetValue(VisualElement.WidthRequestProperty, 22.0);
				image2.SetValue(VisualElement.HeightRequestProperty, 22.0);
				image2.SetValue(View.MarginProperty, new Thickness(5.0, 0.0, 0.0, 0.0));
				stackLayout.Children.Add(image2);
				bindingExtension4.Path = "Equipment2.Image";
				BindingBase binding4 = ((IMarkupExtension<BindingBase>)bindingExtension4).ProvideValue(null);
				image3.SetBinding(Image.SourceProperty, binding4);
				image3.SetValue(VisualElement.WidthRequestProperty, 22.0);
				image3.SetValue(VisualElement.HeightRequestProperty, 22.0);
				stackLayout.Children.Add(image3);
				bindingExtension5.Path = "Equipment3.Image";
				BindingBase binding5 = ((IMarkupExtension<BindingBase>)bindingExtension5).ProvideValue(null);
				image4.SetBinding(Image.SourceProperty, binding5);
				image4.SetValue(VisualElement.WidthRequestProperty, 22.0);
				image4.SetValue(VisualElement.HeightRequestProperty, 22.0);
				stackLayout.Children.Add(image4);
				bindingExtension6.Path = "Equipment4.Image";
				BindingBase binding6 = ((IMarkupExtension<BindingBase>)bindingExtension6).ProvideValue(null);
				image5.SetBinding(Image.SourceProperty, binding6);
				image5.SetValue(VisualElement.WidthRequestProperty, 22.0);
				image5.SetValue(VisualElement.HeightRequestProperty, 22.0);
				stackLayout.Children.Add(image5);
				bindingExtension7.Path = "Name";
				BindingBase binding7 = ((IMarkupExtension<BindingBase>)bindingExtension7).ProvideValue(null);
				label2.SetBinding(Label.TextProperty, binding7);
				label2.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
				BindableObject bindableObject2 = label2;
				BindableProperty fontSizeProperty2 = Label.FontSizeProperty;
				IExtendedTypeConverter extendedTypeConverter2 = new FontSizeConverter();
				string value2 = "12";
				XamlServiceProvider xamlServiceProvider2 = new XamlServiceProvider();
				Type typeFromHandle3 = typeof(IProvideValueTarget);
				int length2;
				object[] array3 = new object[(length2 = this.parentValues.Length) + 5];
				Array.Copy(this.parentValues, 0, array3, 5, length2);
				object[] array4 = array3;
				array4[0] = label2;
				array4[1] = stackLayout;
				array4[2] = stackLayout3;
				array4[3] = frame;
				array4[4] = viewCell;
				object service2;
				xamlServiceProvider2.Add(typeFromHandle3, service2 = new SimpleValueTargetProvider(array4, Label.FontSizeProperty, nameScope));
				xamlServiceProvider2.Add(typeof(IReferenceProvider), service2);
				Type typeFromHandle4 = typeof(IXamlTypeResolver);
				XmlNamespaceResolver xmlNamespaceResolver2 = new XmlNamespaceResolver();
				xmlNamespaceResolver2.Add("", "http://xamarin.com/schemas/2014/forms");
				xmlNamespaceResolver2.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
				xmlNamespaceResolver2.Add("prism", "clr-namespace:Prism.Mvvm;assembly=Prism.Forms");
				xmlNamespaceResolver2.Add("controls", "clr-namespace:AutoR.Controls;assembly=AutoR");
				xmlNamespaceResolver2.Add("iconize", "clr-namespace:Plugin.Iconize;assembly=Plugin.Iconize");
				xamlServiceProvider2.Add(typeFromHandle4, new XamlTypeResolver(xmlNamespaceResolver2, typeof(AddShip.<InitializeComponent>_anonXamlCDataTemplate_23).GetTypeInfo().Assembly));
				xamlServiceProvider2.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(50, 96)));
				bindableObject2.SetValue(fontSizeProperty2, extendedTypeConverter2.ConvertFromInvariantString(value2, xamlServiceProvider2));
				label2.SetValue(View.MarginProperty, new Thickness(5.0, 0.0, 0.0, 0.0));
				stackLayout.Children.Add(label2);
				iconImage.SetValue(IconImage.IconProperty, "md-lock");
				iconImage.SetValue(IconImage.IconColorProperty, Color.DeepSkyBlue);
				iconImage.SetValue(VisualElement.HeightRequestProperty, 18.0);
				iconImage.SetValue(VisualElement.WidthRequestProperty, 18.0);
				iconImage.SetValue(View.HorizontalOptionsProperty, LayoutOptions.EndAndExpand);
				bindingExtension8.Path = "isLocked";
				BindingBase binding8 = ((IMarkupExtension<BindingBase>)bindingExtension8).ProvideValue(null);
				iconImage.SetBinding(VisualElement.IsVisibleProperty, binding8);
				stackLayout.Children.Add(iconImage);
				stackLayout3.Children.Add(stackLayout);
				stackLayout2.SetValue(StackLayout.OrientationProperty, StackOrientation.Horizontal);
				bindingExtension9.Path = "TypeName";
				BindingBase binding9 = ((IMarkupExtension<BindingBase>)bindingExtension9).ProvideValue(null);
				label3.SetBinding(Label.TextProperty, binding9);
				label3.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
				label3.SetValue(Label.TextColorProperty, Color.DarkBlue);
				stackLayout2.Children.Add(label3);
				bindingExtension10.Path = "HPPercent";
				BindingBase binding10 = ((IMarkupExtension<BindingBase>)bindingExtension10).ProvideValue(null);
				bloodbar.SetBinding(ProgressBar.ProgressProperty, binding10);
				bloodbar.SetValue(VisualElement.WidthRequestProperty, 20.0);
				bloodbar.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
				stackLayout2.Children.Add(bloodbar);
				bindingExtension11.Path = "HPName";
				BindingBase binding11 = ((IMarkupExtension<BindingBase>)bindingExtension11).ProvideValue(null);
				label4.SetBinding(Label.TextProperty, binding11);
				label4.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
				label4.SetValue(Label.TextColorProperty, Color.Chocolate);
				BindableObject bindableObject3 = label4;
				BindableProperty fontSizeProperty3 = Label.FontSizeProperty;
				IExtendedTypeConverter extendedTypeConverter3 = new FontSizeConverter();
				string value3 = "12";
				XamlServiceProvider xamlServiceProvider3 = new XamlServiceProvider();
				Type typeFromHandle5 = typeof(IProvideValueTarget);
				int length3;
				object[] array5 = new object[(length3 = this.parentValues.Length) + 5];
				Array.Copy(this.parentValues, 0, array5, 5, length3);
				object[] array6 = array5;
				array6[0] = label4;
				array6[1] = stackLayout2;
				array6[2] = stackLayout3;
				array6[3] = frame;
				array6[4] = viewCell;
				object service3;
				xamlServiceProvider3.Add(typeFromHandle5, service3 = new SimpleValueTargetProvider(array6, Label.FontSizeProperty, nameScope));
				xamlServiceProvider3.Add(typeof(IReferenceProvider), service3);
				Type typeFromHandle6 = typeof(IXamlTypeResolver);
				XmlNamespaceResolver xmlNamespaceResolver3 = new XmlNamespaceResolver();
				xmlNamespaceResolver3.Add("", "http://xamarin.com/schemas/2014/forms");
				xmlNamespaceResolver3.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
				xmlNamespaceResolver3.Add("prism", "clr-namespace:Prism.Mvvm;assembly=Prism.Forms");
				xmlNamespaceResolver3.Add("controls", "clr-namespace:AutoR.Controls;assembly=AutoR");
				xmlNamespaceResolver3.Add("iconize", "clr-namespace:Plugin.Iconize;assembly=Plugin.Iconize");
				xamlServiceProvider3.Add(typeFromHandle6, new XamlTypeResolver(xmlNamespaceResolver3, typeof(AddShip.<InitializeComponent>_anonXamlCDataTemplate_23).GetTypeInfo().Assembly));
				xamlServiceProvider3.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(56, 120)));
				bindableObject3.SetValue(fontSizeProperty3, extendedTypeConverter3.ConvertFromInvariantString(value3, xamlServiceProvider3));
				stackLayout2.Children.Add(label4);
				bindingExtension12.Path = "fleetId";
				bindingExtension12.StringFormat = "舰队:{0}";
				BindingBase binding12 = ((IMarkupExtension<BindingBase>)bindingExtension12).ProvideValue(null);
				label5.SetBinding(Label.TextProperty, binding12);
				label5.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
				BindableObject bindableObject4 = label5;
				BindableProperty fontSizeProperty4 = Label.FontSizeProperty;
				IExtendedTypeConverter extendedTypeConverter4 = new FontSizeConverter();
				string value4 = "12";
				XamlServiceProvider xamlServiceProvider4 = new XamlServiceProvider();
				Type typeFromHandle7 = typeof(IProvideValueTarget);
				int length4;
				object[] array7 = new object[(length4 = this.parentValues.Length) + 5];
				Array.Copy(this.parentValues, 0, array7, 5, length4);
				object[] array8 = array7;
				array8[0] = label5;
				array8[1] = stackLayout2;
				array8[2] = stackLayout3;
				array8[3] = frame;
				array8[4] = viewCell;
				object service4;
				xamlServiceProvider4.Add(typeFromHandle7, service4 = new SimpleValueTargetProvider(array8, Label.FontSizeProperty, nameScope));
				xamlServiceProvider4.Add(typeof(IReferenceProvider), service4);
				Type typeFromHandle8 = typeof(IXamlTypeResolver);
				XmlNamespaceResolver xmlNamespaceResolver4 = new XmlNamespaceResolver();
				xmlNamespaceResolver4.Add("", "http://xamarin.com/schemas/2014/forms");
				xmlNamespaceResolver4.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
				xmlNamespaceResolver4.Add("prism", "clr-namespace:Prism.Mvvm;assembly=Prism.Forms");
				xmlNamespaceResolver4.Add("controls", "clr-namespace:AutoR.Controls;assembly=AutoR");
				xmlNamespaceResolver4.Add("iconize", "clr-namespace:Plugin.Iconize;assembly=Plugin.Iconize");
				xamlServiceProvider4.Add(typeFromHandle8, new XamlTypeResolver(xmlNamespaceResolver4, typeof(AddShip.<InitializeComponent>_anonXamlCDataTemplate_23).GetTypeInfo().Assembly));
				xamlServiceProvider4.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(57, 122)));
				bindableObject4.SetValue(fontSizeProperty4, extendedTypeConverter4.ConvertFromInvariantString(value4, xamlServiceProvider4));
				label5.SetValue(View.MarginProperty, new Thickness(5.0, 0.0, 0.0, 0.0));
				stackLayout2.Children.Add(label5);
				bindingExtension13.Path = "love";
				bindingExtension13.StringFormat = "好感: {0}";
				BindingBase binding13 = ((IMarkupExtension<BindingBase>)bindingExtension13).ProvideValue(null);
				label6.SetBinding(Label.TextProperty, binding13);
				label6.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
				BindableObject bindableObject5 = label6;
				BindableProperty fontSizeProperty5 = Label.FontSizeProperty;
				IExtendedTypeConverter extendedTypeConverter5 = new FontSizeConverter();
				string value5 = "12";
				XamlServiceProvider xamlServiceProvider5 = new XamlServiceProvider();
				Type typeFromHandle9 = typeof(IProvideValueTarget);
				int length5;
				object[] array9 = new object[(length5 = this.parentValues.Length) + 5];
				Array.Copy(this.parentValues, 0, array9, 5, length5);
				object[] array10 = array9;
				array10[0] = label6;
				array10[1] = stackLayout2;
				array10[2] = stackLayout3;
				array10[3] = frame;
				array10[4] = viewCell;
				object service5;
				xamlServiceProvider5.Add(typeFromHandle9, service5 = new SimpleValueTargetProvider(array10, Label.FontSizeProperty, nameScope));
				xamlServiceProvider5.Add(typeof(IReferenceProvider), service5);
				Type typeFromHandle10 = typeof(IXamlTypeResolver);
				XmlNamespaceResolver xmlNamespaceResolver5 = new XmlNamespaceResolver();
				xmlNamespaceResolver5.Add("", "http://xamarin.com/schemas/2014/forms");
				xmlNamespaceResolver5.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
				xmlNamespaceResolver5.Add("prism", "clr-namespace:Prism.Mvvm;assembly=Prism.Forms");
				xmlNamespaceResolver5.Add("controls", "clr-namespace:AutoR.Controls;assembly=AutoR");
				xmlNamespaceResolver5.Add("iconize", "clr-namespace:Plugin.Iconize;assembly=Plugin.Iconize");
				xamlServiceProvider5.Add(typeFromHandle10, new XamlTypeResolver(xmlNamespaceResolver5, typeof(AddShip.<InitializeComponent>_anonXamlCDataTemplate_23).GetTypeInfo().Assembly));
				xamlServiceProvider5.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(58, 120)));
				bindableObject5.SetValue(fontSizeProperty5, extendedTypeConverter5.ConvertFromInvariantString(value5, xamlServiceProvider5));
				label6.SetValue(View.MarginProperty, new Thickness(5.0, 0.0, 0.0, 0.0));
				stackLayout2.Children.Add(label6);
				image6.SetValue(Image.SourceProperty, new ImageSourceConverter().ConvertFromInvariantString("explore.png"));
				bindingExtension14.Path = "IsInExplore";
				BindingBase binding14 = ((IMarkupExtension<BindingBase>)bindingExtension14).ProvideValue(null);
				image6.SetBinding(VisualElement.IsVisibleProperty, binding14);
				image6.SetValue(VisualElement.WidthRequestProperty, 52.0);
				image6.SetValue(VisualElement.HeightRequestProperty, 16.0);
				image6.SetValue(View.MarginProperty, new Thickness(5.0, 0.0, 0.0, 0.0));
				stackLayout2.Children.Add(image6);
				image7.SetValue(Image.SourceProperty, new ImageSourceConverter().ConvertFromInvariantString("repair.png"));
				bindingExtension15.Path = "IsInRepair";
				BindingBase binding15 = ((IMarkupExtension<BindingBase>)bindingExtension15).ProvideValue(null);
				image7.SetBinding(VisualElement.IsVisibleProperty, binding15);
				image7.SetValue(VisualElement.WidthRequestProperty, 52.0);
				image7.SetValue(VisualElement.HeightRequestProperty, 16.0);
				image7.SetValue(View.MarginProperty, new Thickness(5.0, 0.0, 0.0, 0.0));
				stackLayout2.Children.Add(image7);
				stackLayout3.Children.Add(stackLayout2);
				frame.SetValue(ContentView.ContentProperty, stackLayout3);
				viewCell.View = frame;
				return viewCell;
			}

			// Token: 0x0400004A RID: 74
			internal object[] parentValues;

			// Token: 0x0400004B RID: 75
			internal AddShip root;
		}
	}
}
